/**
 * Created by Nico on 2016/1/30.
 */
var should = require("should");
var config = require('../../config.js');
require('../../models/leancloudConnect.js')(config);
var activityM = require('../../models/activity.js');
var serviceM = require('../../models/activityService.js');
describe("活动用例", function() {
    /*it("1.创建分享", function (done) {
        activityM.createNewShare("562892ad60b20fc98109c692", "nico", "activityType2").then(function (result) {
            console.log(result);
            done();
        }).catch(function (err) {
            console.log(err);
            done();
        });
    });*/
    /*it("2.抽奖", function (done) {
        activityM.isTurntabledInShare("562892ad60b20fc98109c692", "56ac7edb7db2a2005a67e9c5").then(function (result) {
            console.log(result);
            done();
        }).catch(function (err) {
            console.log(err);
            done();
        });
    });*/
    /*it("2.抽奖", function (done) {
        activityM.queryShare("56acb9e4c1406100529c9645").then(function (result) {
            console.log(result);
            done();
        }).catch(function (err) {
            console.log(err);
            done();
        });
    });*/
    it("2.抽奖", function (done) {
        serviceM.countActivityShareByOpenid('oA7dTszNX7jPucCFmXPlea7C7A1s').then(function(data){
            console.log(data);
            done();
        }).catch(function(err){
            console.log(err);
            done();
        });
    });

    it("",function(done){
        console.log(Date.parse(new Date()));
        done();
    });

});